<?
use WID\Test\Matchers as Matchers;

return array(
	'name'=>'toBeTrue', 
	
	'each'=> array(
		'matcher'=>null
	),
	
	'beforeEach'=>function(&$each) {
		$each['matcher'] = new Matchers\toBeTrue();
	}, 
	
	'tests'=>array(
		'match'=>function(&$each) {
			$m = $each['matcher'];
			$this->expect($m->match(true,false,null))->toBeTrue(); // prawdziwy
			$this->expect($m->match(false,true,null))->toBeTrue(); // zanegowny prawdziwy
			$this->expect($m->match(true,true,null))->toBeFalse(); // zanegowany nieprawdziwy
		},
		
		'getInfo'=>function(&$each) {
			$this->expect($each['matcher']->getInfo(false,false,null))->toBe('false to be true');
			$this->expect($each['matcher']->getInfo(true,true,null))->toBe('true not to be true');
		},
		
		'getName'=>function(&$each) {
			$this->expect($each['matcher']->getName())->toBe('toBeTrue');
		}
		
	)
);
?>